package com.ww.springboot.boot.cyclic;

import cn.hutool.core.bean.BeanUtil;

import java.util.HashMap;
import java.util.Map;

/**
 * 描述：
 *
 * @author wanwei
 * @since 2021-10-30 17:28
 */
public class Test {
    public static void main(String[] args) {

        A a = new A("a");

        A aa = a.clone();

        System.out.println(a);
        B b = new B("b",aa);

        a.setB(b);

        b.getA().setB(b);

//        System.out.println(a);
//        System.out.println(b);

        System.out.println(a.getB().getB());
        System.out.println(b.getA().getA());
    }
}
